#猜日子
year=int(input("请输入年份："))
mouths=int(input("请输入月份："))
if mouths>12 or mouths<=0:
       print("请输入正确的月份")
else:
    day=int(input("请输入日期："))

    if year%4==0:

        mouth=[31,29,31,30,31,30,31,31,30,31,30,31]
    else:
         mouth=[31,28,31,30,31,30,31,31,30,31,30,31]
    if day>mouth[mouths-1]or day<0:
        print("请输入正确的日期")
    else:
      j=0
      for i in mouth[:mouths-1]:
            j+=i
            result=j+day
      print(f"{year}年{mouths}月{day}是本年的第{result}天")


